﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCIncidenciaNuevo.ascx.cs" Inherits="CondorTravelOperacionesWeb.Pages.Controles.UCIncidenciaNuevo" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register src="../../Controls/UCMessageForm.ascx" tagname="UCMessageForm" tagprefix="uc1" %>

<style type="text/css">
    .style1
    {
        width: 148px;
    }
    .style2
    {
        width: 45px;
    }
    .style3
    {
        width: 157px;
    }
    .cssTextBox
    {}
</style>

<script type="text/javascript">
    var formato = 1;      
            
</script>     
<asp:Label ID="lblMensaje" runat="server"></asp:Label>

<uc1:UCMessageForm ID="UCMessageForm2" runat="server" />
<br />
<%// Add new user FFUser %><asp:Panel ID="pnlForm" runat="server">

<table  class="advancedfilter" border="0" width="650px">
    <tr style="height:15px;">
        <td></td>
        <td  colspan="5">
            <asp:ValidationSummary ID="vsIncidente" runat="server" ValidationGroup="incidente" />
        </td>
            
    </tr>
    <tr style="height:15px;">
        <td></td>
        <td class="cellfield" style="width:200px">Código de Incidente:</td>
        <td class="style1"> 
            <asp:TextBox ID="txtCodigoIncidente" runat="server" CssClass="cssTextBox"  Enabled="false"
                maxlength="15" Width="80px" ValidationGroup="incidente" >0</asp:TextBox>
        </td>
        <td  class="cellhidden"></td>
        <td class="style2">Fecha Registro</td>
        <td class="style3"> 
            <asp:TextBox ID="txtFecharegistro" runat="server" CssClass="cssTextBox" 
                Enabled="false" maxlength="15" ValidationGroup="incidente" Width="118px"></asp:TextBox>
        </td>
    </tr>
<tr style="height:15px;">
    <td></td>
    <td  class="cellfield">Agencia:</td>
    <td colspan="4">
        <asp:DropDownList ID="cboAgencia" runat="server" Width="200px" 
            ValidationGroup="incidente">
        </asp:DropDownList>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ErrorMessage="El campo [Agencia] es obligatorio" 
            ControlToValidate="cboAgencia" InitialValue="0" ValidationGroup="incident">*</asp:RequiredFieldValidator>
    </td>

</tr>
<tr style="height:15px;">
    <td></td>
    <td  class="cellfield">Agente:</td>
    <td colspan="4">
        <asp:DropDownList ID="cboAgente" runat="server" Width="200px" 
            ValidationGroup="incidente">
        </asp:DropDownList><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
            ErrorMessage="El campo [Agente] es obligatorio" 
            ControlToValidate="cboAgente" InitialValue="0" ValidationGroup="incidente">*</asp:RequiredFieldValidator>
            </td>
</tr>
    <tr style="height:15px;">
        <td>
            &nbsp;</td>
        <td class="cellfield">
            Cliente:</td>
        <td colspan="4">
            <asp:DropDownList ID="cboCliente" runat="server" ValidationGroup="incidente" 
                Width="354px" AutoPostBack="True" 
                onselectedindexchanged="cboCliente_SelectedIndexChanged">
            </asp:DropDownList>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                ControlToValidate="cboCliente" ErrorMessage="El campo [Cliente] es obligatorio" 
                InitialValue="0" ValidationGroup="incidente">*</asp:RequiredFieldValidator>
        </td>
    </tr>
<tr style="height:15px;">
   <td></td>
    <td  class="cellfield">Itinerario:</td>
    <td colspan="4">
        <asp:DropDownList ID="cboItinerario" runat="server" ValidationGroup="incidente" 
            Width="354px" AutoPostBack="True" Enabled="False" 
            onselectedindexchanged="cboItinerario_SelectedIndexChanged">
        </asp:DropDownList>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
            ControlToValidate="cboItinerario" 
            ErrorMessage="El campo [Itinerario] es obligatorio" InitialValue="0" 
            ValidationGroup="incidente">*</asp:RequiredFieldValidator>
            </td>
</tr>
<tr style="height:15px;">
    <td></td>
    <td  class="cellfield">Paquete Asignado</td>
    <td colspan="4">
       <asp:TextBox ID="txtPaquete" runat="server" CssClass="cssTextBox" 
                Enabled="false" maxlength="15" ValidationGroup="incidente" Width="350px"></asp:TextBox>
    </td>
</tr>
    <tr style="height:15px;">
        <td>
            &nbsp;</td>
        <td class="cellfield">
            Servicio Programado:</td>
        <td colspan="4">
            <asp:DropDownList ID="cboServicioProgramado" runat="server" 
                ValidationGroup="incidente" Width="354px" Enabled="False">
            </asp:DropDownList>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                ControlToValidate="cboServicioProgramado" 
                ErrorMessage="El campo [Servicio programado] es obligatorio" InitialValue="0" 
                ValidationGroup="incidente">*</asp:RequiredFieldValidator>
        </td>
    </tr>
     <tr style="height:15px;width:200px" >
        <td></td>
        <td class="cellfield">Prioridad:</td>
        <td class="style1"> 
            <asp:DropDownList ID="cboPrioridad" runat="server" ValidationGroup="incidente" 
                Width="200px">
            </asp:DropDownList>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                ControlToValidate="cboPrioridad" 
                ErrorMessage="El campo [Prioridad] es obligatorio" InitialValue="0" 
                ValidationGroup="incidente">*</asp:RequiredFieldValidator>
            &nbsp;
        </td>
        <td  class="cellhidden"></td>
        <td class="style2">&nbsp;</td>
        <td class="style3"> 
            &nbsp;</td>
    </tr>
    <tr style="height:15px;">
        <td>
            &nbsp;</td>
        <td class="cellfield">
            Categoria:</td>
        <td class="style1">
            <asp:DropDownList ID="cboCategoria" runat="server" ValidationGroup="incidente" 
                Width="200px">
            </asp:DropDownList>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" 
                ControlToValidate="cboCategoria" 
                ErrorMessage="El campo [Categoria] es obligatorio" InitialValue="0" 
                ValidationGroup="incidente">*</asp:RequiredFieldValidator>
        </td>
        <td class="cellhidden">
            &nbsp;</td>
        <td class="style2">
            Sub-Categoria</td>
        <td class="style3">
            <asp:DropDownList ID="cboSubcategoria" runat="server" ValidationGroup="incidente" 
                Width="200px">
            </asp:DropDownList>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                ControlToValidate="cboSubcategoria" 
                ErrorMessage="El campo [Subcategoria] es obligatorio" InitialValue="0" 
                ValidationGroup="incidente">*</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr style="height:15px;">
        <td>
            &nbsp;</td>
        <td class="cellfield">
            Tipo Problema:</td>
        <td class="style1">
            <asp:DropDownList ID="cboTipoProblema" runat="server" ValidationGroup="incidente" 
                Width="200px">
            </asp:DropDownList>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" 
                ControlToValidate="cboTipoProblema" 
                ErrorMessage="El campo [Tipo de Problema] es obligatorio" InitialValue="0" 
                ValidationGroup="incidente">*</asp:RequiredFieldValidator>
        </td>
        <td class="cellhidden">
            &nbsp;</td>
        <td class="style2">
            Grupo Asignacion:</td>
        <td class="style3">
            <asp:DropDownList ID="cboGrupoAsignacion" runat="server" 
                ValidationGroup="incidente" Width="200px">
            </asp:DropDownList>
        </td>
    </tr>
    <tr style="height:15px;">
        <td>
            &nbsp;</td>
        <td class="cellfield">
            Pais origen</td>
        <td class="style1">
            <asp:DropDownList ID="cboPais" runat="server" ValidationGroup="incidente" 
                Width="200px" AutoPostBack="True" 
                onselectedindexchanged="cboPais_SelectedIndexChanged">
            </asp:DropDownList>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" 
                ControlToValidate="cboPais" ErrorMessage="El campo [Pais] es obligatorio" 
                InitialValue="0" ValidationGroup="incidente">*</asp:RequiredFieldValidator>
        </td>
        <td class="cellhidden">
            &nbsp;</td>
        <td class="style2">
            Ciudad:</td>
        <td class="style3">
            <asp:DropDownList ID="cboCiudad" runat="server" ValidationGroup="incidente" 
                Width="200px">
            </asp:DropDownList>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" 
                ControlToValidate="cboCiudad" ErrorMessage="El campo [Ciudad] es obligatorio" 
                InitialValue="0" ValidationGroup="incidente">*</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr style="height:15px;">
        <td>
        </td>
        <td class="cellfield">
            Descripcion incidente:</td>
        <td colspan="4">
            <asp:TextBox ID="txtDescripcion" runat="server" Height="105px" 
                TextMode="MultiLine" Width="483px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" 
                ControlToValidate="txtDescripcion" 
                ErrorMessage="El campo [Descripcion Incidente] es obligatorio" InitialValue="0" 
                ValidationGroup="incidente">*</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr style="height:15px;">
        <td>
            &nbsp;</td>
        <td class="cellfield">
            Descripcion solucion</td>
        <td colspan="4">
            <asp:TextBox ID="txtObservacion0" runat="server" Height="105px" 
                TextMode="MultiLine" Width="482px"></asp:TextBox>
        </td>
    </tr>
    <tr style="height:15px;">
        <td>
            &nbsp;</td>
        <td class="cellfield">
            Resultado incidente</td>
        <td colspan="4">
            <asp:DropDownList ID="cboResultado" runat="server" ValidationGroup="incidente" 
                Width="354px">
            </asp:DropDownList>
        </td>
    </tr>
<tr>
<td></td>
   <td  class="cellfield">Estado:</td>    
    <td colspan="4">
        <asp:DropDownList ID="cboEstado" runat="server" Width="354px" 
            ValidationGroup="incidente">
        </asp:DropDownList>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
            ControlToValidate="cboEstado" ErrorMessage="El campo [Estado] es obligatorio" 
            InitialValue="0" ValidationGroup="incidente">*</asp:RequiredFieldValidator>
    </td>
</tr>
<tr>
<td></td>
<td class="cellfield">&nbsp;</td>
<td colspan="4">
    <asp:HiddenField ID="hfCodigoProgramacion" runat="server" />
    <asp:HiddenField ID="hfpaqueteTuristico" runat="server" Value="0" />
    </td>
</tr>
<tr>
<td></td>
  <td colspan=5 align="right">        
      <asp:Button ID="btnSearch" runat="server" onclick="btnSearch_Click"  
            Text="Guardar" TabIndex="2" ValidationGroup="incidente" />&nbsp;&nbsp;
  </td>    
</tr>
</table>
</asp:Panel>

<asp:Panel ID="pnlForm1" runat="server" Visible="false">
    
</asp:Panel>

<asp:HiddenField ID="hCodigoIncidencia" runat="server" />